-- GENERATED SPELL FOR [Hellfire Channeler] --


function spell0_17256(pUnit, Event) --@Burning Abyssal,n/a--
pUnit:FullCastSpellOnTarget(30511,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17256', 587, 1)
end

function spell1_17256(pUnit, Event) --@Dark Mending,Heal--
pUnit:FullCastSpellOnTarget(30528,pUnit)
pUnit:RegisterEvent('Sorts_17256', 2000, 1)
end

function spell2_17256(pUnit, Event) --@Shadow Bolt Volley,n/a--
pUnit:FullCastSpellOnTarget(30510,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17256', 2000, 1)
end

function spell3_17256(pUnit, Event) --@Soul Transfer,n/a--
pUnit:FullCastSpellOnTarget(30531,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_17256', 646, 1)
end

function Sorts_17256(pUnit, Event)
local choix_sorts_17256 = math.random(0, 3)
if choix_sorts_17256 == 0 then
pUnit:RegisterEvent('spell0_17256', 1, 1)
end
if choix_sorts_17256 == 1 then
pUnit:RegisterEvent('spell1_17256', 1, 1)
end
if choix_sorts_17256 == 2 then
pUnit:RegisterEvent('spell2_17256', 1, 1)
end
if choix_sorts_17256 == 3 then
pUnit:RegisterEvent('spell3_17256', 1, 1)
end
end

function mob17256_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_17256', math.random(1500, 3000), 1)
end

function mob17256_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17256_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob17256_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(17256, 1, 'mob17256_Action')
RegisterUnitEvent(17256, 2, 'mob17256_Leave')
RegisterUnitEvent(17256, 3, 'mob17256_Kill')
RegisterUnitEvent(17256, 4, 'mob17256_Die')
